copy acrGUI.py acrGUI.pyw
call setup.py py2exe
rd /S /Q build
copy acr.png dist/acr.png
copy acr.ico dist/acr.ico

cd dist
call Compil32.exe /cc acr.iss
copy setup.exe ACRSetup.exe
del setup.exe
cd ..

set x="acr-v0.2.zip"
mkdir temprelease
copy *.py temprelease
copy *.pyc temprelease
copy *.ico temprelease
copy *.png temprelease
copy *.pyw temprelease
copy *.bat temprelease
cd temprelease
mkdir dist
cd ..
copy "dist\acr.ico" "temprelease\dist\acr.ico"
copy "dist\acr.iss" "temprelease\dist\acr.iss"
copy "dist\acr.png" "temprelease\dist\acr.png"
copy "dist\acrGUI.exe" "temprelease\dist\acrGUI.exe"
copy "dist\acrGUI.exe.log" "temprelease\dist\acrGUI.exe.log"
copy "dist\ACRSetup.exe" "temprelease\dist\ACRSetup.exe"
copy "dist\bz2.pyd" "temprelease\dist\bz2.pyd"
copy "dist\library.zip" "temprelease\dist\library.zip"
copy "dist\MSVCR71.dll" "temprelease\dist\MSVCR71.dll"
copy "dist\python24.dll" "temprelease\dist\python24.dll"
copy "dist\Readme.txt" "temprelease\dist\Readme.txt"
copy "dist\unicodedata.pyd" "temprelease\dist\unicodedata.pyd"
copy "dist\w9xpopen.exe" "temprelease\dist\w9xpopen.exe"
copy "dist\wxmsw26h_animate_vc.dll" "temprelease\dist\wxmsw26h_animate_vc.dll"
copy "dist\wxmsw26h_vc.dll" "temprelease\dist\wxmsw26h_vc.dll"
copy "dist\zlib.pyd" "temprelease\dist\zlib.pyd"
copy "dist\_animate.pyd" "temprelease\dist\_animate.pyd"
copy "dist\_controls_.pyd" "temprelease\dist\_controls_.pyd"
copy "dist\_core_.pyd" "temprelease\dist\_core_.pyd"
copy "dist\_gdi_.pyd" "temprelease\dist\_gdi_.pyd"
copy "dist\_misc_.pyd" "temprelease\dist\_misc_.pyd"
copy "dist\_socket.pyd" "temprelease\dist\_socket.pyd"
copy "dist\_ssl.pyd" "temprelease\dist\_ssl.pyd"
copy "dist\_windows_.pyd" "temprelease\dist\_windows_.pyd"

cd temprelease
call 7z a -tzip "%x%" * -r -mx=9
copy "%x%" ..\
cd ..
rd /S /Q temprelease 
